﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DA7 RID: 3495
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class QuitRogueCsReq : IMessage<QuitRogueCsReq>, IMessage, IEquatable<QuitRogueCsReq>, IDeepCloneable<QuitRogueCsReq>, IBufferMessage
	{
		// Token: 0x17002C6B RID: 11371
		// (get) Token: 0x06009CEB RID: 40171 RVA: 0x001A4158 File Offset: 0x001A2358
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<QuitRogueCsReq> Parser
		{
			get
			{
				return QuitRogueCsReq._parser;
			}
		}

		// Token: 0x17002C6C RID: 11372
		// (get) Token: 0x06009CEC RID: 40172 RVA: 0x001A415F File Offset: 0x001A235F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return QuitRogueCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002C6D RID: 11373
		// (get) Token: 0x06009CED RID: 40173 RVA: 0x001A4171 File Offset: 0x001A2371
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return QuitRogueCsReq.Descriptor;
			}
		}

		// Token: 0x06009CEE RID: 40174 RVA: 0x001A4178 File Offset: 0x001A2378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitRogueCsReq()
		{
		}

		// Token: 0x06009CEF RID: 40175 RVA: 0x001A4180 File Offset: 0x001A2380
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitRogueCsReq(QuitRogueCsReq other) : this()
		{
			this.areaId_ = other.areaId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009CF0 RID: 40176 RVA: 0x001A41A5 File Offset: 0x001A23A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitRogueCsReq Clone()
		{
			return new QuitRogueCsReq(this);
		}

		// Token: 0x17002C6E RID: 11374
		// (get) Token: 0x06009CF1 RID: 40177 RVA: 0x001A41AD File Offset: 0x001A23AD
		// (set) Token: 0x06009CF2 RID: 40178 RVA: 0x001A41B5 File Offset: 0x001A23B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x06009CF3 RID: 40179 RVA: 0x001A41BE File Offset: 0x001A23BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as QuitRogueCsReq);
		}

		// Token: 0x06009CF4 RID: 40180 RVA: 0x001A41CC File Offset: 0x001A23CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(QuitRogueCsReq other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009CF5 RID: 40181 RVA: 0x001A41FC File Offset: 0x001A23FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009CF6 RID: 40182 RVA: 0x001A423B File Offset: 0x001A243B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009CF7 RID: 40183 RVA: 0x001A4243 File Offset: 0x001A2443
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009CF8 RID: 40184 RVA: 0x001A424C File Offset: 0x001A244C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009CF9 RID: 40185 RVA: 0x001A4280 File Offset: 0x001A2480
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009CFA RID: 40186 RVA: 0x001A42BE File Offset: 0x001A24BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(QuitRogueCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009CFB RID: 40187 RVA: 0x001A42EF File Offset: 0x001A24EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009CFC RID: 40188 RVA: 0x001A42F8 File Offset: 0x001A24F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.AreaId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003C9E RID: 15518
		private static readonly MessageParser<QuitRogueCsReq> _parser = new MessageParser<QuitRogueCsReq>(() => new QuitRogueCsReq());

		// Token: 0x04003C9F RID: 15519
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003CA0 RID: 15520
		public const int AreaIdFieldNumber = 8;

		// Token: 0x04003CA1 RID: 15521
		private uint areaId_;
	}
}
